				<div class="position">当前位置：<a href="<?php echo Yii::app()->createUrl('member/index/index');?>"><?php echo t('Member','web') ?></a> &gt; <a href="<?php echo Yii::app()->createUrl('member/index/orders');?>">交易管理</a> &gt; 订单详情</div>
				<!--提示信息 start-->
			<?php if($order['zo_status']==2){?>
				<!--交易关闭 start--> 
				<div class="remind_box mt10 d_n">
					<div class="order_status line_24">
						<h3 class="fs_14">当前订单状态：交易关闭 </h3>
						<p>关闭类型：买家取消订单</p>
						<!--<p>原因：我不想买了</p>-->
					</div>
				</div>
				<!--交易关闭 end--> 
            <?php }elseif($order['zo_status']==3 && $order['zo_pay_status']==2){?>
				<!--交易成功 start--> 
				<div class="remind_box mt10">
					<div class="order_status line_24">
						<h3 class="fs_14">当前订单状态：交易成功</h3>
						<p>1.如果没有收到货，或收到货后出现问题，您可以联系卖家协商解决。</p>
						<p>2.如果卖家没有履行应尽的承诺，您可以"投诉维权" </p>
						<div class="logistics_box">
							<h3 class="c_666"><a name="logistics" id="logistics"></a>物流信息</h3>
							<ul class="c_f list">
								<li><span class="tit">发货方式：</span><span>快递</span></li>
								<li><span class="tit">物流公司：</span><span><?php echo Express::model()->getExpressCom($order['zo_express_com'])?></span></li>
								<li><span class="tit">运单号码：</span><span><?php echo $order['zo_express_id']?></span></li>
                                <li class="c_f"><span class="tit">物流跟踪：</span>
                                    <span id="expinfo"></span>
                                </li>
							</ul>
						</div>
					</div>
				</div>
				<!--交易成功 end-->
            <?php }elseif($order['zo_status']==1 && $order['zo_pay_status']==1){?>
            	<!--未付款 start-->
				<div class="remind_box mt10">
					<div class="order_status line_24">
						<h3 class="fs_14">当前订单状态：宝贝已拍下，请在3天内付款</h3>
						<p>1. 点击这里 <a class="c_06c" href="<?php echo Yii::app()->createUrl('member/order/payorder/',array('orderid'=>$order['zo_id']));?>" title="">付款</a></p>
						<p>2. 如果你想取消这笔订单，可以 <a class="c_06c" href="<?php echo Yii::app()->createUrl('member/index/cancelorder',array('orderid'=>$order['zo_id']));?>" title="">取消订单</a></p>
					</div>
				</div>
                <!--未付款 end-->
            <?php }elseif($order['zo_exp_status']==1 && $order['zo_pay_status']==2){?>
				<!--已付款 start-->
				<div class="remind_box mt10 d_n">
					<div class="order_status line_24">
						<h3 class="fs_14">当前订单状态：买家已付款</h3>
						<p>1. 提醒卖家发货， <a class="c_06c" href="<?php echo Yii::app()->createUrl('member/index/remindseller',array('orderid'=>$order['zo_id']));?>" title="">提醒发货</a></p>
						<p>2. 如果你想取消这笔订单，可以 <a class="c_06c" href="javascript:" title="">申请退款</a></p>
					</div>
				</div>
				<!--已付款 end-->
            <?php }elseif($order['zo_exp_status']==2){?>
				<!--已发货 start--> 
				<div class="remind_box mt10">
					<div class="order_status line_24">
						<h3 class="fs_14">当前订单状态：卖家已发货</h3>
						<p>1. 如果7天内没有收到货物，<a class="c_06c" href="/member/index/RefundOne/ordproductid/<?php echo $order['product']['0']['zop_id'];?>" title="申请退款" alt="申请退款">申请售后</a></p>
						<div class="logistics_box">
							<h3 class="c_666"><a name="logistics" id="logistics"></a>物流信息</h3>
							<ul class="c_f list">
								<li><span class="tit">发货方式：</span><span>快递</span></li>
								<li><span class="tit">物流公司：</span><span><?php echo Express::model()->getExpressCom($order['zo_express_com'])?></span></li>
								<li><span class="tit">运单号码：</span><span><?php echo $order['zo_express_id']?></span></li>
                                <li class="c_f"><span class="tit">物流跟踪：</span><a href="#expinfo"></a>
                                    <span id="expinfo"></span>
                                </li>
							</ul>
						</div>
					</div>
				</div>
				<!--已发货 end-->
            <?php }elseif($order['zo_pay_status']==3){?>
				<div class="remind_box mt10 d_n">
					<div class="order_status line_24">
						<h3 class="fs_14">当前订单状态：已退款 </h3>
						<p>该订单已退款，<a class="c_06c" href="javascript:" title="">点击这里查看</a>。 </p>
					</div>
				</div>
            <?php }elseif($order['zo_pay_status']==4){?>
				<!--退款中 start--> 
				<div class="remind_box mt10 d_n">
					<div class="order_status line_24">
						<h3 class="fs_14">当前订单状态：退款中 </h3>
						<p>您已经申请了退款，<a class="c_06c" href="javascript:" title="">点击这里查看</a>。我们将在48小时间内处理本次退款申请。 </p>
					</div>
				</div>
				<!--退款中 end-->  
            <?php }elseif($order['zo_comment']==2){?>
				<!--双方互评 start--> 
				<div class="remind_box mt10">
					<div class="order_status line_24">
						<h3 class="fs_14">当前订单状态：已评价 </h3>
						<p>1.如果没有收到货，或收到货后出现问题，您可以联系卖家协商解决。</p>
						<p>2.如果卖家没有履行应尽的承诺，您可以"投诉维权" </p>
						<div class="logistics_box">
							<h3 class="c_666"><a name="logistics" id="logistics"></a>物流信息</h3>
							<ul class="c_f list">
								<li><span class="tit">发货方式：</span><span>快递</span></li>
								<li><span class="tit">物流公司：</span><span><?php echo Express::model()->getExpressCom($order['zo_express_com'])?></span></li>
								<li><span class="tit">运单号码：</span><span><?php echo $order['zo_express_id']?></span></li>
                                <li class="c_f"><span class="tit">物流跟踪：</span><a href="#expinfo"></a>
                                    <span id="expinfo"></span>
                                </li>
							</ul>
						</div>
					</div>
				</div>
				<!--双方互评 end--
            <?php }?>   
				<!--提示信息 end--> 
				<!--订单信息 start-->
				 <div class="order_info mt10">
					<div class="hd"><h2 class="fs_14">订单信息</h2></div>
					<div class="bd">
						<form method="post" action="<?php echo Yii::app()->createUrl('member/index/updatenote');?>">
						<div class="address_box">
							<ul class="c_f">
								<li class="c_f">
									<span class="tit">收货地址：</span>
									<span><?php echo implode('，',array_filter(array($order['zo_name'],$order['zo_mobile'],$order['zo_telphone'],$order['address'],$order['zo_zip'])));?></span>
								</li>
								<li class="c_f">
									<span class="tit">买家留言：</span>
									<span><?php echo $order['zo_postscript'];?></span>
								</li>
                                <?php if($order['zo_status']==1 && $order['zo_exp_status']==1){?>
								<li class="c_f">
									<span class="tit">补充留言：</span>
                                    <input type="hidden" name="orderid" value="<?php echo $order['zo_id'];?>">
									<textarea name="note" class="t_area"><?php echo $order['zo_postscript'];?></textarea>
									<p class="submit"><button class="mem_btn mem_btn04" type="submit" name="">提交</button><span class="c_666">还可以输入300字</span></p>
								</li>
                                <?php }?>
                                <?php if($order['zo_status']==1 && $order['zo_pay_status']==5){?>
                                <li class="c_f">
									<span class="tit">支付方式：</span>
									<?php $payment = Payment::model()->find('zpy_id='.$order['zpy_id']);?>
									<span><?php echo $payment->zpy_name?></span>									
								</li>
								<li class="c_f">
									<span class="tit">支付说明：</span>
									<span ><?php echo $payment->zpy_content?></span>
								</li>
								<?php }?>
							</ul>
						</div>
						</form>
						<div class="info_box">
                        <span class="fw_b c_666">订单信息：</span>
                        <span class="mr">订单编号：<?php echo $order['zo_id'];?></span>
                        <span class="mr">成交时间：<?php echo date('Y-m-d H:i:s',$order['zo_create_time']);?></span>
                        <span>
                        <?php if(F::setting('site_shop_type') == 2){?>
                            <?php $services = CmpServices::model()->getServiceRand(1);?>
                            <?php  if(!empty($services)){ foreach($services as $val){
                            	if($val->zcs_type==1){
						 	 //QQ账号 
							echo CHtml::link('<span class="ico_qq qq_online2">和我联系</span>','http://wpa.qq.com/msgrd?V=1&amp;Uin='.$val->zcs_account.'&amp;Site='.Yii::app()->name.'&amp;Menu=yes',array('class'=>'c_06c','target'=>'_blank'));
						 }elseif($val->zcs_type==2){
							 //MSN 
							echo CHtml::link($val->zcs_name,'msnim:chat?contact='.$val->zcs_account,array('class'=>'c_06c','target'=>'_blank'));
						 }elseif($val->zcs_type==3){
							 //淘宝旺旺 
							echo CHtml::link($val->zcs_name,'http://amos1.taobao.com/msg.ww?v=2&uid='.$val->zcs_account.'&s=2',array('class'=>'c_06c','target'=>'_blank'));
						 }
                     }} ?>
                     <?php }else if(F::setting('site_shop_type') == 1){?>
					<a class="c_06c mr5" href="<?php echo Company::createCompanyUrl($order['company']['zc_sub_domain']);?>" title=""><?php echo $order['company']['zc_name'];?></a>                    
                     <?php }?>
                        </span></div>
						<table class="list_table" cellpadding="0" cellspacing="0" width="100%">
							<tr>
								<th width="35%" class="bd_l">宝贝</th>
								<th width="10%">单价（元）</th>
								<th width="8%">数量</th>
								<th width="13%">优惠</th>
								<th width="12%">状态</th>
								<th width="12%">商品总价（元）</th>
								<th width="10%" class="bd_r">运费（元）</th>                                                       
							</tr>
                            <?php foreach($order['product'] as $key=>$product){?>
                                <tr>
                                    <td class="pro tl">
                                        <div class="c_img c_img50"><a href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$product['zp_id']));?>" title="<?php echo $product['zop_title'];?>"><img width="50" height="50" src="<?php echo $product['zop_pic'];?>" alt="<?php echo $product['zop_title'];?>" /></a></div>
                                        <p class="title_pro line_18"><a class="c_06c" href="<?php echo Yii::app()->createUrl('home/product/detail',array('id'=>$product['zp_id']));?>" title=""><?php echo $product['zop_title'];?></a></p>
                                        <p class="other c_999">
											<?php foreach(unserialize($product['zop_spe']) as $spe){?>
                                                <span class="mr10"><?php echo $spe;?></span>
                                            <?php }?>
                                        </p>
                                    </td>
                                    <td><?php echo $product['zop_price'];?></td>
                                    <td><?php echo $product['zop_nums'];?></td>
                                    <td><?php echo OrdDiscount::getDiscountType($order['discount'][$key]['zod_type']).'：-'.$order['discount'][$key]['zod_price'];//优惠?></td>

									<?php if($key==0){?>                                    	
                                        <td rowspan="<?php echo $order['productAmount'];?>">
											<?php if($order['zo_status']==2){?>
                                                <span>交易关闭</span>
                                            <?php }elseif($order['zo_status']==3 && $order['zo_pay_status']==2){?>
                                                <span>交易成功</span>
                                            <?php }elseif($order['zo_status']==1 && $order['zo_pay_status']==1){?>
                                                <span>未付款</span>
                                            <?php }elseif($order['zo_exp_status']==1 && $order['zo_pay_status']==2){?>
                                                <span>等待卖家发货</span>
                                            <?php }elseif($order['zo_exp_status']==2){?>
                                                <span>卖家已发货</span>
                                            <?php }elseif($order['zo_pay_status']==3){?>
                                                <span>已退款</span>
                                            <?php }elseif($order['zo_pay_status']==4){?>
                                                <span>退款中</span>
                                            <?php }elseif($order['zo_comment']==2){?>
                                                <span>双方已评</span>
                                            <?php }?>
                                        </td>
                                        <td rowspan="<?php echo $order['productAmount'];?>"><?php echo $order['zo_amount']-$order['zo_real_freight'];?></td>
                                        <td rowspan="<?php echo $order['productAmount'];?>"><?php echo $order['zo_real_freight'];?></td>
                                    <?php }?>
                                </tr>
                            <?php }?>
						</table>
						<div class="price_box t_r">
							<p class="fw_b"><span class="fs_14 c_666">实付款：</span><span class="fs_24 c_f60 ff_yh price">&yen;<?php echo $order['zo_amount'];?></span></p>
							<p>获积分<?php echo $order['zo_point'];?>点</p>
						</div>
					</div>
				 </div>
				<!--订单信息 end-->
<script language="javascript">
//物流信息
	$(document).ready(function()
	{
			$("#expinfo").html('loading...');
			var expressid = '<?php echo $order['expcom']?>';
            var expressno = '<?php echo $order['zo_express_id']?>';
			$.get("/snoopy/express",{com:expressid,nu:expressno},
				function(data)
				{
				$("#expinfo").html(data);
				}
			); 
	});
</script>